#include "public_includes.h"
#include "interpolator.h"
#include "private_includes.h"

float vus_linear_interpolator(float min, float max, float amount) {
	return min + (max - min) * amount;
}

float vus_cosine_interpolator(float min, float max, float amount) {
	float newAmount = (1 - cosf(amount * M_PI)) / 2;
	return vus_linear_interpolator(min, max, newAmount);
}
